package com.totoro.auth.service;

import com.totoro.auth.bean.AutherProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/** 对配置的auth信息进行处理的类。
 * 这里我们为名字加上【项目作者】前缀
 * Created by Niki on 2018/7/4 11:13
 */
@RestController
public class AuthService {
    @Resource
    AutherProperties autherProperties;

    @GetMapping("/manager/auth")
    public String auth() {
        return "项目作者：" + autherProperties.getName();
    }

}
